package org.lds.message.center.common.model.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AlipayRequest extends CommonRequest {
    private String notifyUrl;

    private String outTradeNo;
    private double totalAmount;
    private String subject;

    @Override
    public String toString() {
        return "{"
                + "\"traceNo\":\""
                + outTradeNo + '\"'
                + ",\"totalAmount\":"
                + totalAmount
                + ",\"subject\":\""
                + subject + '\"'
                + "}";
    }
}
